package com.cdtu.store.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdtu.store.common.entity.SkuEntity;
import com.cdtu.store.common.entity.SpuEntity;
import com.cdtu.store.common.utils.PageUtils;

import java.util.Map;

public interface GoodsService extends IService<SpuEntity> {


    PageUtils list(Map<String, Object> params);

    boolean saveGoods(SpuEntity spu);

    SpuEntity querySpuById(Long id);

    SpuEntity getGoods(Long id);

    void UpdateGoods(SpuEntity spu);

    void delete(Long[] ids);

    public SkuEntity querySkuById(Long id);
}
